package francis.model;

import java.util.Map;

import francis.utils.BeanRefUtil;

public class VideoInfo {
	
	private String aid;//编号
	private String title;//标题
	private String play;//播放次数
	private String review;//评论数
	private String video_review;//弹幕数
	private String favorites;//收藏数
	private String author;//UP主
	private String description;// 描述
	private String pic;//封面
	private String credit;//得分
	private String coins;//
	
	private String create;//创建时间
	
	private int pages;//页数
	
	private String tag;//标签
	private String from;//视频来源
	private String vid;//视频源编号
	private String offsite;//Flash播放调用地址（如果沒有则此视频无法在站外播放）
	
	
	public VideoInfo() {
	}
	
	public VideoInfo(Map<String,String> key_value) {
		//参数验证
		if(key_value == null || key_value.isEmpty()) {
			return;
		}
		//使用反射给参数赋值
		BeanRefUtil.setFieldValue(this, key_value);
		
	}
	
	public String getCreate() {
		return create;
	}

	public void setCreate(String create) {
		this.create = create;
	}

	public String getAid() {
		return aid;
	}
	public void setAid(String aid) {
		this.aid = aid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getPlay() {
		return play;
	}
	public void setPlay(String play) {
		this.play = play;
	}
	public String getReview() {
		return review;
	}
	public void setReview(String review) {
		this.review = review;
	}
	public String getVideo_review() {
		return video_review;
	}
	public void setVideo_review(String video_review) {
		this.video_review = video_review;
	}
	public String getFavorites() {
		return favorites;
	}
	public void setFavorites(String favorites) {
		this.favorites = favorites;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getPic() {
		return pic;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}
	public String getCredit() {
		return credit;
	}
	public void setCredit(String credit) {
		this.credit = credit;
	}
	public String getCoins() {
		return coins;
	}
	public void setCoins(String coins) {
		this.coins = coins;
	}
	public int getPages() {
		return pages;
	}
	public void setPages(int pages) {
		this.pages = pages;
	}
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public String getFrom() {
		return from;
	}
	public void setFrom(String from) {
		this.from = from;
	}
	public String getVid() {
		return vid;
	}
	public void setVid(String vid) {
		this.vid = vid;
	}
	public String getOffsite() {
		return offsite;
	}
	public void setOffsite(String offsite) {
		this.offsite = offsite;
	}

}
